import ioList from '@/hooks/data/ioList.js'
import knowledgeAreaList from '@/hooks/data/knowledgeAreaList.js'
import performanceDomainList from '@/hooks/data/performanceDomainList.js'
import processGroupList from '@/hooks/data/processGroupList.js'
import processList from '@/hooks/data/processList.js'
import subList from '@/hooks/data/subList.js'
import techToolList from '@/hooks/data/techToolList.js'

console.log(" ... 组装加载本地数据")

console.log(ioList)
function toMap(obj,dataList){
    if(!obj){
        obj = {}
    }
    dataList.forEach(item=>{
        obj[item.id] = item
    })
}

const obj = {}
toMap(obj,ioList);
toMap(obj,knowledgeAreaList);
toMap(obj,performanceDomainList);
toMap(obj,processGroupList);
toMap(obj,processList);
toMap(obj,subList);
toMap(obj,techToolList);

export default obj;